// 入口文件
import Vue from 'vue'

//1.1 导入路由的包
import VueRouter from 'vue-router'
//1.2 安装路由的包
Vue.use(VueRouter)

// 2.1 导入vue-resource
import VueResource from 'vue-resource'
// 2.2 安装vue-resource 
Vue.use(VueResource)

// 导入mui样式
import './lib/mui/css/mui.min.css'

import './lib/mui/css/icons-extra.css'

// 1.3 导入自己的路由模块
import router from './router.js'

// 导入app跟组件
import app from './App.vue'

import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name, Header)
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

import { Navbar, TabItem } from 'mint-ui'
Vue.component(Navbar.name, Navbar)
Vue.component(TabItem.name, TabItem)




var vm = new Vue({
    el: '#app',
    render: c => c(app),
    router     //1.4 挂在路由到Vue实例上

})